package main

import (
	"io"
	"net/http"
	"os"
)

func main() {
	// 动态的生成响应结果
	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		f, _ := os.Open("./template/index.html")
		io.Copy(w, f)
		// fmt.Fprintf(w)
	})

	http.ListenAndServe("127.0.0.1:9999", nil)
}
